package com.colorfruit.admin.business.dao;

import com.colorfruit.admin.pojo.entity.PurchaseDetailInfo;
import com.colorfruit.admin.pojo.vo.purchase.PurchaseDetailInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseDetailInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PurchaseDetailInfo record);

    int insertSelective(PurchaseDetailInfo record);

    PurchaseDetailInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PurchaseDetailInfo record);

    int updateByPrimaryKey(PurchaseDetailInfo record);

    List<PurchaseDetailInfoVo> selectPurchaseDetailList(@Param("purchaseTotalInfoId") Long purchaseTotalInfoId);

    List<PurchaseDetailInfoVo> selectPurchaseListWithGlobal(@Param("globalId") Long globalId);
}